package cn.edu.scau.cmi.chenzehan.abstractFactory.factory;

import cn.edu.scau.cmi.chenzehan.abstractFactory.domainPICCFactory.PICCAutomobileDamageFactory;
import cn.edu.scau.cmi.chenzehan.abstractFactory.domainPICCFactory.PICCCasualtiesFactory;
import cn.edu.scau.cmi.chenzehan.abstractFactory.domainPICCFactory.PICCDriverInjuredFactory;
import cn.edu.scau.cmi.chenzehan.abstractFactory.domainPICCFactory.PICCMultipAccidentFactory;
import cn.edu.scau.cmi.chenzehan.abstractFactory.insurance.Insurance;

public class PICCFactory extends AbstractFactory {
	private String message = "感谢您选择中国人寿(PICC)!";
	
	public  PICCFactory getDetailFactory(String factoryType) {
		switch (factoryType) {
		case "驾驶员身体受伤":
			return new PICCDriverInjuredFactory();
		case "汽车损坏":
			return new PICCAutomobileDamageFactory();
		case "人员伤亡":
			return new PICCCasualtiesFactory();
		default:
			return new PICCMultipAccidentFactory();
		}
	}
	
    public String getMessage() {
    	return message;
    }

	@Override
	public Insurance creatProduct() {
		return null;
	}
   
}
